package com.eshop.modules.activity.service.mapper;

import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import com.eshop.modules.activity.domain.StoreVisit;
import com.eshop.common.mapper.CoreMapper;

@Repository
public interface StoreVisitMapper extends CoreMapper<StoreVisit>
{
    @Update({ "update store_visit set count=count+1 where uid=#{uid} AND id=#{productId}" })
    int incBrowseNum(@Param("uid") final Long uid, @Param("productId") final Long productId);
}
